package com.tougutips.modules.user.followers.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author:HuangYiF
 * @create: 2022-07-25 11:54
 * @Description:
 */
public class RedisFollowUtil {
    public static final String MAP_KEY_FOLLOW_INFO = "MAP_FOLLOW_INFO_";

    public static final String MAP_KEY_FANS_INFO = "MAP_FANS_INFO_";

    public static final String MAP_KEY_FOLLOW_COUNT = "MAP_FOLLOW_COUNT_";

    public static String toFollowKey(Long userID,Long otherUserId){
     StringBuffer sb = new StringBuffer();
     sb.append(userID);
     sb.append("::");
     sb.append(otherUserId);
     return sb.toString();
    }
}
